package work.mediway.mdm.biz.service.patient;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import work.mediway.mdm.core.transport.ErrorMsgVO;
import work.mediway.mdm.biz.dto.patient.PatientQueryDTO;
import work.mediway.mdm.biz.dto.patient.PatientStorageDTO;
import work.mediway.mdm.biz.entity.patient.RelPatient;
import work.mediway.mdm.biz.vo.patient.RelPatientVO;

public interface RelPatientService extends IService<RelPatient>{

    /**
     * 保存来自HIS系统的患者信息
     *
     * @param patientStorageDTO PatientBO
     * @return ErrorMsgVO
     */
    ErrorMsgVO patientSave(PatientStorageDTO patientStorageDTO);

    /**
     * 查询患者详细信息
     *
     * @param patientQueryDTO PatientQueryDTO
     * @return patientQueryDTO
     */
    Page<RelPatientVO> patientList(PatientQueryDTO patientQueryDTO);
}
